package com.chezhujie.www.domain;

import com.chezhujie.www.core.init.mysql.BaseEntity;
import com.chezhujie.www.core.init.mysql.annotation.Column;
import com.chezhujie.www.core.init.mysql.annotation.Entity;
import com.chezhujie.www.core.init.mysql.annotation.Id;
import com.chezhujie.www.core.init.mysql.annotation.Table;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by 汤伟杰 on 2017/5/31.
 */
@Entity
@Table(name="czj_commodity",describe = "商品表")
public class Czjcommodity extends BaseEntity{
    @Id
    @Column(length = 19,inputType = "hidden",describe = "主键")
    private String id;
    @Column(length = 19,describe = "商家",inputType = "select",inputCode = "str")
    private String businessId;
    @Column(length = 255,describe = "商品名称",inputType = "text")
    private String commodityName;
    @Column(length = 19,describe = "商品类型",inputType = "select",inputCode = "str")
    private String typeId;
    @Column(length = 11,precision = 2,describe = "现价",inputType = "decimal")
    private BigDecimal presentPrice;
    @Column(length = 11,precision = 2,describe = "原价",inputType = "decimal")
    private BigDecimal originalPrice;
    @Column(length = 11,describe = "库存",inputType = "int")
    private Integer inventory;
    @Column(length = 11,describe = "已售量",inputType = "int")
    private Integer soldCount;
    @Column(length = 500,describe = "内容",inputType = "text")
    private String content;
    @Column(length = 11,describe = "获赞数",inputType = "int")
    private Integer praiseCount;
    @Column(length = 11,describe = "差评数",inputType = "int")
    private Integer badCount;
    @Column(length = 11,describe = "中评数",inputType = "int")
    private Integer middleCount;
    @Column(length = 11,describe = "好评数",inputType = "int")
    private Integer highCount;
    @Column(length = 11,describe = "总评论数",inputType = "int")
    private Integer allCount;
    @Column(length = 1,describe = "是否下架",defalt = "1",inputType = "switch",inputCode = "yesorno")
    private Integer soldOut;
    @Column(describe = "审批状态",length = 1,defalt = "0",inputType = "select",inputCode = "approvestatus")
    private Integer approveStatus;
    @Column(describe = "审批时间",inputType = "date")
    private Date approveTime;
    private Date approveTimeStart;
    private Date approveTimeEnd;
    @Column(describe = "创建时间",inputType = "date")
    private Date createTime;
    private Date createTimeStart;
    private Date createTimeEnd;
    @Column(describe = "删除标识",length = 1,defalt = "0",inputType = "hidden")
    private Integer delFlag;
    @Column(describe = "上架更新时间",inputType = "hidden")
    private Date updateTime;
    private Date updateTimeStart;
    private Date updateTimeEnd;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public String getCommodityName() {
        return commodityName;
    }

    public void setCommodityName(String commodityName) {
        this.commodityName = commodityName;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public BigDecimal getPresentPrice() {
        return presentPrice;
    }

    public void setPresentPrice(BigDecimal presentPrice) {
        this.presentPrice = presentPrice;
    }

    public BigDecimal getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(BigDecimal originalPrice) {
        this.originalPrice = originalPrice;
    }

    public Integer getSoldCount() {
        return soldCount;
    }

    public void setSoldCount(Integer soldCount) {
        this.soldCount = soldCount;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getPraiseCount() {
        return praiseCount;
    }

    public void setPraiseCount(Integer praiseCount) {
        this.praiseCount = praiseCount;
    }

    public Integer getBadCount() {
        return badCount;
    }

    public void setBadCount(Integer badCount) {
        this.badCount = badCount;
    }

    public Integer getMiddleCount() {
        return middleCount;
    }

    public void setMiddleCount(Integer middleCount) {
        this.middleCount = middleCount;
    }

    public Integer getAllCount() {
        return allCount;
    }

    public void setAllCount(Integer allCount) {
        this.allCount = allCount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getCreateTimeStart() {
        return createTimeStart;
    }

    public void setCreateTimeStart(Date createTimeStart) {
        this.createTimeStart = createTimeStart;
    }

    public Date getCreateTimeEnd() {
        return createTimeEnd;
    }

    public void setCreateTimeEnd(Date createTimeEnd) {
        this.createTimeEnd = createTimeEnd;
    }

    public Integer getHighCount() {
        return highCount;
    }

    public void setHighCount(Integer highCount) {
        this.highCount = highCount;
    }

    public Integer getSoldOut() {
        return soldOut;
    }

    public void setSoldOut(Integer soldOut) {
        this.soldOut = soldOut;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getApproveStatus() {
        return approveStatus;
    }

    public void setApproveStatus(Integer approveStatus) {
        this.approveStatus = approveStatus;
    }

    public Date getApproveTime() {
        return approveTime;
    }

    public void setApproveTime(Date approveTime) {
        this.approveTime = approveTime;
    }

    public Date getApproveTimeStart() {
        return approveTimeStart;
    }

    public void setApproveTimeStart(Date approveTimeStart) {
        this.approveTimeStart = approveTimeStart;
    }

    public Date getApproveTimeEnd() {
        return approveTimeEnd;
    }

    public void setApproveTimeEnd(Date approveTimeEnd) {
        this.approveTimeEnd = approveTimeEnd;
    }

    public Integer getInventory() {
        return inventory;
    }

    public void setInventory(Integer inventory) {
        this.inventory = inventory;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getUpdateTimeStart() {
        return updateTimeStart;
    }

    public void setUpdateTimeStart(Date updateTimeStart) {
        this.updateTimeStart = updateTimeStart;
    }

    public Date getUpdateTimeEnd() {
        return updateTimeEnd;
    }

    public void setUpdateTimeEnd(Date updateTimeEnd) {
        this.updateTimeEnd = updateTimeEnd;
    }
}
